const { ipcRenderer } = require("electron")

window.addEventListener('DOMContentLoaded', () => {
    let text = document.querySelector('.text')
    text.addEventListener('dblclick', () => {
        ipcRenderer.send("openTalk", "open")
    })

    let ziyuan = document.querySelector('.top span.icon-ziyuan')
    ziyuan.onclick = () => {
        ipcRenderer.send("closeClient", "close")
    }
})